package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.entity.Theme;
import tech.aistar.mapper.ThemeMapper;
import tech.aistar.service.IThemeService;

import java.util.List;

/**
 * Created by Administrator on 2019/10/11.
 */
@Service
@Transactional
public class ThemeServiceImpl implements IThemeService {
    @Autowired
    private ThemeMapper themeMapper;

    @Override
    public List<Theme> findAllTheme() {
        return themeMapper.findAllTheme();
    }

    @Override
    public Theme findThemeById(Integer themeId) {
        return themeMapper.findThemeById(themeId);
    }
}
